(function () {
	var map, marker_1, content_1, info,
		styles = [ // create an array of styles
	{
		stylers: [/*{ hue: "#00ffe6" }, { saturation: -90 }*/]
	},
	{
		featureType: "road",
		elementType: "geometry",
		stylers: [{color: "#CCCCCC"}, {visibility: "simplified"}]
	},
	{
		featureType: "road",
		elementType: "labels.text.fill",
		stylers: [{visibility: "off"}]
	},
	{
		featureType: "road",
		elementType: "labels.text",
		stylers: [{color: "#333333"}]
	},
	{
		featureType: "poi",
		stylers: [{visibility: "off"}]
	}];	
	var styledMap = new google.maps.StyledMapType(styles, {name: "Styled Map"});
	
	// options
	var mapOptions = {
	  center: new google.maps.LatLng(-12.089463, -77.041538),
	  zoom: 16,
	  mapTypeControlOptions: { mapTypeIds:[] },
	  mapTypeId: 'map_style'
	};
	// map
	map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
		
	map.mapTypes.set('map_style', styledMap);
	map.setMapTypeId('map_style');
	
	// markers
	marker_1 = new google.maps.Marker({
		position: new google.maps.LatLng(-12.090353, -77.041415),
		map: map,
		icon:"img/marker.png",
	});
	
	// info
	content_1 = '<div>'+
		'<img src="img/logo_map.png">'+
		'<div>'+
		'<div class="spacer-10">&#32;</div>'+
		'<p>'+
		'General Trinidad Morán 990 - Lince. Lima-Perú.<br>'+
		'T/ (01) 624 1608'+
		'</p>'+					
		'</div>'+
		'</div>';
	info = new google.maps.InfoWindow({
		content:content_1,
		disableAutoPan:true
	});
	
	// events
	google.maps.event.addListener(marker_1, 'click', function() {
		info.setContent(content_1);
		info.open(map,marker_1);
	});
	
	info.open(map,marker_1);
	
	//resize
	$(window).resize(function() {
		google.maps.event.trigger(map, 'resize');
	});
})();